-
-
Notifications
You must be signed in to change notification settings - Fork 18.4k
TST: make tests stricter #32527
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
TST: make tests stricter #32527
Conversation
pandas/tests/io/json/test_ujson.py
Outdated
if numpy is None or orient == "index": | ||
dtype = np.int64 | ||
if numpy is True and orient is None: | ||
dtype = np.int64 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@WillAyd do these conditional dtypes make sense? i was surprised that the windows special-casing was needed
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think this is related to #28560 which I closed since we deprecated the numpy argument. Are you seeing this issue generally on Windows?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this was necessary to get the CI passing. i havent run any other windows builds
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
are you OK with these being here like this? maybe a comment about them being made unnecessary at some point?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you refactor this to start with np.int64 and only special case the 32 bit needs? I think that would make it more logical to follow / clean up whenever that argument is removed
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
you can make this a fixture as well
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm. ex comments, fixturize if possible
pandas/tests/io/json/test_ujson.py
Outdated
if numpy is None or orient == "index": | ||
dtype = np.int64 | ||
if numpy is True and orient is None: | ||
dtype = np.int64 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
you can make this a fixture as well
thanks |
I expect to see some platform-specific failures, will be nice to document those where possible.